@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/dict/update.js"]}){
<form id="dictForm" lay-filter="dictForm" class="layui-form model-form">

    <input id="id" name="id" value="${obj.id!}" type="hidden"/>

    <div class="layui-form-item">
        <label class="layui-form-label">字典类型</label>
        <div class="layui-input-block">
            <input value="${obj.dictTypeId!}" id="dictTypeId" name="dictTypeId" type="hidden"/>
            <input id="dictTypeName" type="text" class="layui-input white-border" disabled="disabled"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">字典名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input value="${obj.name!}" name="name" placeholder="请输入字典名称" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">上级字典<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input value="${obj.pid!}" id="pid" name="pid" type="hidden" class="layui-input" lay-verify="required" required/>
            <input value="${obj.pname!}" id="pname" name="pname" placeholder="请选择上级字典，如没有请选择顶级" type="text" class="layui-input" lay-verify="required" required readonly="readonly"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">状态（字典）<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input type="radio" name="state" value="1" title="启用" ${obj.state! == 1 ? 'checked' : ''}>
            <input type="radio" name="state" value="0" title="禁用" ${obj.state! == 0 ? 'checked' : ''}>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">字典Key<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input value="${obj.dictKey!}" name="dictKey" placeholder="请输入字典Key" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">字典Value<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input value="${obj.dictValue!}" name="dictValue" placeholder="请输入字典Value" type="text" class="layui-input"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">字典描述</label>
        <div class="layui-input-block">
            <textarea id="description" name="description" placeholder="请输入字典描述" class="layui-textarea">${obj.description!}</textarea>
        </div>
    </div>

    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>

</form>
@}